<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>svgTest</title>
    <script src="./jquery.js"></script>
    <script src="svg-pan-zoom/dist/svg-pan-zoom.js"></script>
    <script src="./browser_bool.js"></script>
</head>

<body>
    <embed src="testFiles/dt.svg" class="show-style" onload="zoom(this)"><embed>
    <script type="text/javascript">
        function zoom(obj) {
            // 此处获取的元素Id是SVG文件中的<g>标签的id值
            $(obj.getSVGDocument().getElementById('Logo')).show();
            svgPanZoom(obj, {
                zoomEnabled: true,         //开启缩放功能
                controlIconsEnabled: true  //开启右下角缩放控件功能
            });
        }
        $('object').attr('onload', 'zoom(this)');
    </script>
</body>

</html>